<%-- 
    Document   : index
    Created on : May 11, 2010, 3:35:22 PM
    Author     : longdm0708l
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>


<%@page import="jsf.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login page</title>
    </head>
    <body>
        <h1><h:outputText value="Login page" /></h1>
        <img src="images/banner-car-4.jpg" alt="images"/>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputText value="User Name:" />
                <h:inputText value="#{LoginController.username}"/>

                <h:outputText value="Password:" />
                <h:inputSecret value="#{LoginController.password}"/>

                <h:commandButton value="Login" action="#{LoginController.checkLogin}"/>
                <h:commandLink value="New User?Register" action="#{CustomerController.toNewCustomer}"/>
            </h:panelGrid>
            <h:outputText value="#{LoginController.errorMes}"/>
        </h:form>
    </body>
</html>
</f:view>
